import{_ as o}from"./index.vue_vue_type_style_index_0_lang2.js";import{d as s,e as r,r as i,P as t,Q as d,$ as l,K as m,a2 as c,a5 as k,R as p}from"./elementPlusModules.js";const u=p("p",null,"通过属性 showHeader 定义顶部插槽及工具栏是否展示",-1),h=s({__name:"HideHeader",setup(N){const a=r(`
  <template>
    <div style="height: 70vh">
        <MerakXTable
            :columns-by-store="JSON.parse(JSON.stringify(state.columns))"
            :columns="state.columns"
            :data="state.data"
            :show-header="false"
            :pagination="false"
        >
        </MerakXTable>
    </div>
  </template>
  
  <script setup lang="ts">
  import { reactive } from "vue";
  
  import MerakXTable, { MerakXTableColumn } from "../../../../../components/MerakXTable";
  import MerakIcon from "../../../../../components/MerakIcon/index.vue";
  
  const state = reactive<{
    columns: MerakXTableColumn[];
    data: any[];
  }>({
    columns: [
      { field: "name", title: "Name" },
      { field: "age", title: "Age" },
      { field: "address", title: "Address" }
    ],
    data: [
      {
        id: "1",
        name: "John Brown",
        age: 32,
        address: "New York No. 1 Lake Park",
        description: "My name is John Brown, I am 32 years old, living in New York No. 1 Lake Park."
      },
      {
        id: "2",
        name: "Jim Green",
        age: 42,
        address: "London No. 1 Lake Park",
        description: "My name is Jim Green, I am 42 years old, living in London No. 1 Lake Park."
      },
      {
        id: "3",
        name: "Not Expandable",
        age: 29,
        address: "Jiangsu No. 1 Lake Park",
        description: "This not expandable"
      },
      {
        id: "4",
        name: "Joe Black",
        age: 32,
        address: "Sydney No. 1 Lake Park",
        description: "My name is Joe Black, I am 32 years old, living in Sydney No. 1 Lake Park."
      }
    ]
  });
  <\/script>
`),e=i({columns:[{field:"name",title:"Name"},{field:"age",title:"Age"},{field:"address",title:"Address"}],data:[{id:"1",name:"John Brown",age:32,address:"New York No. 1 Lake Park",description:"My name is John Brown, I am 32 years old, living in New York No. 1 Lake Park."},{id:"2",name:"Jim Green",age:42,address:"London No. 1 Lake Park",description:"My name is Jim Green, I am 42 years old, living in London No. 1 Lake Park."},{id:"3",name:"Not Expandable",age:29,address:"Jiangsu No. 1 Lake Park",description:"This not expandable"},{id:"4",name:"Joe Black",age:32,address:"Sydney No. 1 Lake Park",description:"My name is Joe Black, I am 32 years old, living in Sydney No. 1 Lake Park."}]});return(n,g)=>(t(),d(k,null,[u,l(m(o),{"columns-by-store":JSON.parse(JSON.stringify(e.columns)),columns:e.columns,data:e.data,"show-header":!1,pagination:!1},null,8,["columns-by-store","columns","data"]),c(n.$slots,"default",{html:a.value})],64))}});export{h as _};
